x86/AMD-ucode: correct multiple container handling
authorJan Beulich <JBeulich@suse.com>
Mon, 15 Dec 2014 09:16:09 +0000 (09:16 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 5 Jan 2015 15:20:31 +0000 (10:20 -0500)
commit4d9ba7b2188083a09d1b1a1bda7054cc3eb77f67
tree4eabf59317a3853c2fa4ca7c39dee533ae9bc122
parent6fb3a07bc0ad656b5f76eb9fc961bcd1d3cace58
x86/AMD-ucode: correct multiple container handling

Avoid emitting an error message referring to an incorrect or corrupt
container file just because no entry was found for the running CPU.

Additionally switch the order of data validation and consumption in
cpu_request_microcode()'s first loop, and also check the types of
skipped blocks in container_fast_forward().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/microcode_amd.c